<include file="Common:header" />
    <script type="text/javascript">
        $(function(){
            $('.opt').click(function(){
                opt = $(this).data('opt');
                file = $(this).parent().data('f');
                location.href = "__ACTION__/opt/"+opt+'/file/'+file;
            })
            {$alert}
        })
    </script>
<body>
<!--面包屑导航 开始-->
<div class="crumb_warp">
    <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
    <i class="fa fa-home"></i> <a href="{:U(MODULE_NAME.'/Index/info')}">首页</a> &raquo; 数据库管理
</div>
<!--面包屑导航 结束-->
<div class="result_wrap">
    <div class="result_content">
                <table class="list_tab">
                    <tr class="tr_t">
                        <td width="3%" class="tc">编号</td>
                        <td class="tc">文件名</td>
                        <td width="" class="tc">备份时间</td>
                        <td width="" class="tc">文件大小</td>
                        <td width="" class="tc">操作</td>
                    </tr>
                    <volist name="list" id="vo">
                        <tr class="tr">
                            <td class="tc title">
                                {$key+1}
                            </td>
                            <td class="tc" data-f="{$vo.filename}">
                                <a href="#" class="opt" data-opt="download">{$vo.filename}</a>
                            </td>
                            <td class="tc">
                                {$vo.filetime}
                            </td>
                            <td class="tc">
                                {:$vo['filesize']/1000} KB
                            </td>
                            <td class="tc" data-f="{$vo.filename}">
                                <input type="button" data-opt="redo" class="button_edit opt" value="还原">
                                <input type="button" data-opt="download" class="button_edit opt" value="下载">
                                <input type="button" data-opt="del" class="button_del opt" value="删除">
                            </td>
                        </tr>
                    </volist>
                    <tr class="tr_t">
                        <td colspan="5" data-f="1">
                            <input type="submit" data-opt="backup" class="button_Submit opt" value="备份"> <input type="submit" data-opt="optimize" class="button_button opt" value="优化">
                        </td>
                    </tr>
                </table>
    </div>
</div>
</body>
</html>